import 'package:appflutterhomeschool/route/application.dart';
import 'package:appflutterhomeschool/route/routes.dart';
import 'package:flutter/material.dart';
import '../widgets.dart';

///用户： ninetailedfox
///时间： 2020/7/24
///邮箱： 1037438704@qq.com
///功能： 详细数据
class DetailedDataWidget extends StatelessWidget {
  List list = [];


  @override
  Widget build(BuildContext context) {
    Map map  = {
      "name":"赵栋亮",
      "time":"06-22 10:20"
    };
    list.add(map);
    Map map1  = {
      "name":"杨思",
      "time":"06-22 11:20"
    };
    list.add(map1);
    Map map2  = {
      "name":"李丽",
      "time":"06-22 13:20"
    };
    list.add(map2);
    Map map3  = {
      "name":"张思于",
      "time":"06-22 16:20"
    };
    list.add(map3);
    Map map4  = {
      "name":"杨海啸",
      "time":"06-22 15:20"
    };
    list.add(map4);


    return Container(
      child: ListView.builder(
          itemCount: list.length,
          physics: NeverScrollableScrollPhysics(),
          shrinkWrap: true,
          itemBuilder: (context, index) {
            return ItemNameWidget(
              visibleJump: true,
              title: list[index]["name"],
              content: list[index]["time"],
//              onTap: () {
//                Application()
//                    .navigatePushToPage(context, Routes.formDataPage, {});
//              },
            );
          }),
    );
  }
}
